noinst_LTLIBRARIES = libath_cmd.la

bin_PROGRAMS = athena tester


libath_cmd_la_SOURCES = \
	serf_filters.c \
	props.c \
	config.c \
	log.c \
	proc.c \
	engine.c \
	job.c \
	request.c \
	connection.c \
	mail.c \
	stats.c \
	cmd_io.c \
	cmd_parser.c \
	cmd_req.c \
	cmd_handler.c \
	engine_thread.c \
	job_thread.c \
	mail_thread.c \
	lb_thread.c \
	stats_thread.c \
	listen_thread.c \
	watchdog_thread.c

athena_SOURCES = athena.c
athena_LDADD = libath_cmd.la \
	$(ATH_LB_LIB) $(ATH_UTIL_LIB) $(ATH_SERF_LIB)
athena_LDFLAGS = -rpath $(APACHE2_HOME)/lib

tester_SOURCES = tester.c
tester_LDADD = $(athena_LDADD)
tester_LDFLAGS = $(athena_LDFLAGS)

all:
	@echo "**"
	@echo "**  These apps link with -rpath set to:"
	@echo "**     $(APACHE2_HOME)/lib"
	@echo "**  If you want to use LD_LIBRARY_PATH instead,"
	@echo "**  remove the *_LDFLAGS = -rpath* lines from the Makefile"
	@echo "**  and rebuid."
	@echo "**  Then, you will need to add $(APACHE2_HOME)/lib"
	@echo "**  to ld.so.conf or LD_LIBRARY_PATH"
	@echo "**"
	@echo "**********************************************************"
